﻿<%@ Page Title="导游信息" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="GuideInfo.aspx.cs" Inherits="GuideInfo" %>

<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        欢迎使用导游信息查询!
    </h2>
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        //            function OnClick(s, e) {
        //                grid.GetRowValues(grid.GetFocusedRowIndex(), 'CiceroniID', OnGetRowValues);
        //            }
        //            function OnGetRowValues(values) {
        //                pop_add.SetHeaderText('看这里');
        //                var url = 'Schedule.aspx?cid=' + values;
        //                pop_add.SetContentUrl(url);
        //                pop_add.Show();
        //            }

        function OnInit(s, e) {
            AttachSelectors();
        }
        function OnEndCallback(s, e) {
            AttachSelectors();
        }
        function AttachSelectors() {
            //http://api.jquery.com/hover/
            $(".item").hover(
            //handlerIn
                function () {
                    $(this).animate({ opacity: 0.1 }, 500);

                    popup.SetContentHtml($(this)[0].getAttribute("value"));
                    popup.ShowAtElement($(this)[0]);
                },
            //handlerOut
                function () {
                    $(this).animate({ opacity: 1.0 }, 500);
                    popup.Hide();
                }
            );
        }
    </script>
    <table>
        <tr>
            <td>
                语言：
            </td>
            <td class="style3">
                <dx:ASPxComboBox ID="tbLanguageEdit" runat="server" ValueType="System.String">
                    <ClientSideEvents SelectedIndexChanged="function(s, e) {
	cbPanel.PerformCallback(&quot;Language&quot;);
}" />
                </dx:ASPxComboBox>
            </td>
            <td>
                选择时间：
            </td>
            <td class="style2">
                <dx:ASPxDateEdit ID="tbSelectedDate" runat="server">
                    <ClientSideEvents DateChanged="function(s, e) {
	cbPanel.PerformCallback(&quot;Date&quot;);
}" />
                </dx:ASPxDateEdit>
            </td>
            <td align="left">
                月份
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                <dx:ASPxButton ID="btnBack" runat="server" Text="向后" AutoPostBack="False">
                    <ClientSideEvents Click="function(s, e) {
	cbPanel.PerformCallback(&quot;Back&quot;);
}" />
                </dx:ASPxButton>
            </td>
            <td>
                <dx:ASPxButton ID="btnForward" runat="server" Text="向前" AutoPostBack="False">
                    <ClientSideEvents Click="function(s, e) {
		cbPanel.PerformCallback(&quot;Forward&quot;);
}" />
                </dx:ASPxButton>
            </td>
        </tr>
        <tr>
            <td colspan="8">
                <dx:ASPxCallbackPanel ID="cbServerPanel" runat="server" 
                    ClientInstanceName="cbPanel" Width="100%" 
                    oncallback="cbServerPanel_Callback">
                    <PanelCollection>
                        <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                            <dx:ASPxGridView ID="guideStatusGridView" runat="server" AutoGenerateColumns="False"
                                ClientInstanceName="grid" KeyFieldName="CiceroniID" OnHtmlDataCellPrepared="ASPxGridView1_HtmlDataCellPrepared"
                                Width="100%" OnPageIndexChanged="guideStatusGridView_PageIndexChanged">
                                <ClientSideEvents EndCallback="OnEndCallback" Init="OnInit" />
                                <SettingsBehavior AllowFocusedRow="True" />
                                <ClientSideEvents EndCallback="OnEndCallback" Init="OnInit"></ClientSideEvents>
                                <SettingsBehavior AllowFocusedRow="True"></SettingsBehavior>
                                <SettingsPager PageSize="20">
                                </SettingsPager>
                            </dx:ASPxGridView>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxCallbackPanel>
            </td>
        </tr>
    </table>
    <dx:ASPxPopupControl ID="popupControl" runat="server" ClientInstanceName="popup"
        CloseAction="CloseButton" HeaderText="导游上团信息" PopupHorizontalAlign="OutsideRight"
        RenderMode="Lightweight">
    </dx:ASPxPopupControl>
    <%--<dx:ASPxPopupControl ID="ASPxPopupControl1" runat="server" AllowDragging="True" 
            ClientInstanceName="pop_add" Height="600px" 
            PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
            Width="900px" AllowResize="True" DragElement="Window" Modal="True" 
            CloseAction="CloseButton">
        </dx:ASPxPopupControl> --%>
</asp:Content>
